//
//  TTShopCartDiamondViewCell.h
//  TaoTuo
//
//  Created by admin on 2019/9/2.
//  Copyright © 2019 admin. All rights reserved.
//

#import <UIKit/UIKit.h>
@class TTShopCartDiamondViewCell;
@class TTShopCartSubDetailModel;

@protocol TTShopCartDiamondViewCellDelegate <NSObject>
@optional
// 点击了选中按钮
- (void)clickLeftButtonInDiamondViewCell:(TTShopCartDiamondViewCell *_Nullable)cell;

// 触发长按手势
- (void)longGestureActionInDiamondViewCell:(TTShopCartDiamondViewCell *_Nullable)cell deleteModel:(TTShopCartSubDetailModel * _Nullable)deleteModel;

/// 点击删除
- (void)clickDeleteButtonInDiamondViewCell:(TTShopCartDiamondViewCell *_Nullable)cell deleteModel:(TTShopCartSubDetailModel * _Nullable)deleteModel;

// 查看证书
- (void)clickLookCertificateWithModel:(TTShopCartSubDetailModel * _Nullable)model;

@end

NS_ASSUME_NONNULL_BEGIN

@interface TTShopCartDiamondViewCell : UITableViewCell

@property (nonatomic, assign) id<TTShopCartDiamondViewCellDelegate> delegate;

// 是否带阴影，是否可选
- (void)setDetailModel:(TTShopCartSubDetailModel *)detailModel hasShadow:(BOOL)hasShadow canSelect:(BOOL)canSelect;


// 是否带阴影，是否可选，来自提交订单页面吗
- (void)setDetailModel:(TTShopCartSubDetailModel *)detailModel hasShadow:(BOOL)hasShadow canSelect:(BOOL)canSelect isFromCommitOrder:(BOOL)isFromCommitOrder;

// 是否带阴影，是否可选，cell宽度
- (void)setDetailModel:(TTShopCartSubDetailModel *)detailModel hasShadow:(BOOL)hasShadow canSelect:(BOOL)canSelect cellWidth:(CGFloat)cellWidth;

@end

NS_ASSUME_NONNULL_END
